home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
001a
/
ezzcomm.zip
/
SINIT.T
< prev
next >
Wrap
Text File
|
1991-02-16
|
14KB
|
195 lines
: EZ-ZCOMM Copyright 1991 by Roger E. Hough, All Rights Reserved.
: Licensed for use at your own risk without fee. Altered versions,
: when distributed, must be clearly marked as altered and accompanied
: by the originals.
cndreq ife %s0 goto allreq;p?1 return
sepreq if "!js0,/nul" lput "Path is required to end with path separator(/).\r\n" return
allreq: if "js0,/nul/" lput "Path must not contain the sequence '/nul/'.\r\n" return
if "Js0,\\" lput "Path must use forward rather than backward slashes as path separators.\r\n" return
if "Js0,*?+;%" lput "Path must not contain any of these characters: '*?+;%'.\r\n" return
if "!js0,:/" lput "Path should include drive letter followed by path separator(<x>:/).\r\n" return
if "ps0,:" lput "Path must not begin with the character ':'.\r\n" return
if "ps0,/" lput "Path must not begin with the character '/'.\r\n" return
if "js0,//" lput "Path is not of the requested format.\r\n" return
split s0 ":" "" if "Jz1,:" lput "Path must contain only one occurence of ':'.\r\n" return
ife "%z0!=1" lput "Invalid drive specification - %z0\r\n" return;if f%s0 p?1 return
if "!f%z0:/nul" p?0 lput "Invalid drive specification - %z0\r\n" return
ife r nolog closerx;ki create -y %s0 ife r nolog closerx;if !f%s0 p?0 return
p?1 return
main pv0 lput "\E[0m\E[2J\E[7mInitialization Customization\E[m\r\n\r\n"
set n0 ""; set n1 ""; set n2 ""; set n3 ""; set n4 ""
set n5 ""; set n6 ""; set n7 ""; set n8 ""; set n9 ""
set s3 "x";set dircx ""
while !%n1 accept n1 "Your \E[1mFirst\E[m name: "
while !%n2 accept n2 "Your \E[1mLast\E[m name: "
initzone:
lput "\r\nHours Behind GMT:\r\n"
lput "\r\n EDT: 5 CDT: 6 MDT: 7 PDT: 8"
lput "\r\n EST: 6 CST: 7 MST: 8 PST: 9\r\n"
lput "\r\nNote: US Daylight Savings Time is in effect from the first"
lput "\r\n Sunday in April until the last Sunday in October.\r\n\r\n"
accept s0 "Enter Number of Hours: ";setn s0 s0*60;sets s1 pz%s0
lput "\r\nSelect one:\r\n\n 1 - 8088/8086/80188/80186/Nec V20\r\n"
lput " 2 - 80286\r\n 3 - 80386(or SX)\r\n 4 - 80486\r\n O - other\r\n\n"
set s0 / while "!Js0,1234o0" acceptl1 s0 "Your Processor: "
ife "Js0,o0" goto nocalb;ife "Js0,23" set s2 750;ife is0,4 set s2 1100
if is0,1 set s2 400 lput "Please Round Processor Speed To Nearest Whole Number of Mhz(Enter 5 for 4.77Mhz)\r\n"
set s0 0 while "as0==0||Js0,." acceptl s0 "Processor Speed in Mhz: "
setn s0 s0*s2 sets s1 "%s1 pa%s0"
nocalb:
lput \r\n set s0 "";while !Js0,yn acceptl1 s0 "Do you have tone dialing(y/n)? "
if is0,y while !Js3,yn acceptl1 s3 "Do you have call waiting(y/n)? "
ife is0,n set s2 "P";else ife is3,n set s2 "T";else set s2 "T*70W"
lput "\r\nYour date of birth and voice phone number are required to establish"
lput "\r\nyour identity when signing onto Wildcat Bulletin Boards.\r\n\n"
while !%n3 accept n3 "Your date of birth as MM-DD-YY: "
while !%n4 accept n4 "Your VOICE Phone Number as XXX-XXX-XXXX: "
lput "\r\nThe last four digits of your phone number are needed to establish your"
lput "\r\nidentity when signing onto Genesis or Odyssey Bulletin Boards.\r\n\n"
while !%n5 accept n5 "Last four digits of your phone number: "
lput "\E[m\E[2JThe long distance dialing prefix is usually one of the following numbers:\r\n"
lput "\r\n 1 - for your default long distance carrier"
lput "\r\n 102881 - for AT&T"
lput "\r\n 102221 - for MCI"
lput "\r\n 103331 - for Sprint\r\n"
lput "\r\nIf you have 'Equal Access,' you may determine your default carrier by dialing\r\n"
lput "\r\n 1-700-555-4141 (a recording will answer).\r\n"
lput "\r\nFor the Hayes AT command set, the following control characters can usually be"
lput "\r\nused in the long distance prefix:\r\n"
lput "\r\n, - pause for two seconds"
lput "\r\nW - wait for (another) dial tone"
lput "\r\n@ - wait for an answer and then silence\r\n\r\n"
set s0 "Long distance dialing prefix(typically '1')"
accept l "%s0 for \E[1mother\E[m area codes: "
accept m "%s0 for \E[1myour\E[m area code: "
set s0 "" while !Js0,yn acceptl1 s0 "Does your keyboard have 101 or more keys(Y/N)? "
ife is0,n sets s1 "%s1 pK0";else sets s1 "%s1 pK1"
set s0 x while !Js0,yn acceptl1 s0 "Do you have an EGA, VGA or snow-free CGA display?(Y/N)? "
if is0,y sets s1 "%s1 display warpdrive" display warpdrive;cls;display stat=off
:if is0,y set s0 x while !Js0,yn acceptl1 s0 "Do you have a VGA display on which you want to use 60 rows(Y/N)? "
:if is0,y sets s1 "%s1;if !dt videobios 38;!cls" if !dt videobios 38;!cls
lput "\r\nPath names must use forward rather than backward slashes for path separators.\r\n"
lput "\r\nThe path into which received files are placed should end with a path separator"
lput "\r\n(a forward slash) to prevent the remote site from downloading files into other"
lput "\r\ndirectories.\r\n\n" set s9 nul p?0
while !? accept dirrx "Path into which received files are placed(e.g. c:/arc/): " sets s0 %dirrx%s9 gosub sepreq.%lib/sinit.t
lput "\r\nThe path from which to send files must not end with a path separator character.\r\n\n"
p?0 while !? accept dirsx "Path from which to send files(e.g. c:/arc): " sets s0 %dirsx/nul gosub allreq.%lib/sinit.t
lput "\r\nThe path for session capture files must not end with a path separator character.\r\n\n"
p?0 while !? accept n9 "Path for session capture files(e.g. c:/zcomm/sessions): " sets s0 %n9/nul gosub allreq.%lib/sinit.t
lput "\r\nThe path for temporary work files must not end with a path separator character."
lput "\r\nIt is used for small work files and to download compressed network mail files."
lput "\r\nA RAM disk should be considered for this if you have one of sufficient size.\r\n\n"
p?0 while !? accept tmp "Path for temporary work files(e.g. g:/scratch): " sets s0 %tmp/nul gosub allreq.%lib/sinit.t
lput "\r\nThe path from which messages are uploaded and in which lists of files to be"
lput "\r\nuploaded and lists of files to be downloaded may be placed must not end with a"
lput "\r\npath separator.\r\n\n"
p?0 while !? accept n8 "Path for msgs and lists of files(e.g. c:/out): " sets s0 %n8/nul gosub allreq.%lib/sinit.t
lput "\r\nThe path in which listings of files at bulletin boards are placed must not end"
lput "\r\nwith a path separator. The list of files at GENIE is read from this path to"
lput "\r\ndetermine the most recent file known to you, and to estimate file transfer time"
lput "\r\nand cost for the list you requested.\r\n\n"
p?0 while !? accept n7 "Path for listings of files(e.g. c:/lst): " sets s0 %n7/nul gosub allreq.%lib/sinit.t
lput "\r\nThe path in which captured file directory listings for files at GENIE which are"
lput "\r\nmore recent than the most recent file known to you must not end with a path"
lput "\r\nseparator.\r\n\n"
p?0 while !? accept n6 "Path for new GENIE file directory entries(e.g. c:/libmenu): " sets s0 %n6/nul gosub allreq.%lib/sinit.t
lput "\r\nThe picture file captures the current screen image when Alt-Z is pressed or when"
lput "\r\na 'picture' command is issued. ANSISCAN may be used to generate a text file for"
lput "\r\neach 4000-byte screen image within such a file. The picture file may be used to"
lput "\r\nrecord and report problems in file transfer operations.\r\n\n"
p?0 while !? accept picture "Picture file(e.g. d:/ansi/capture.bin): " sets s0 %picture gosub allreq.%lib/sinit.t
lput "\E[m\E[2JBefore reporting a problem to anyone, review the messages very carefully in your"
lput "\r\nZCOMM or Pro-Yam documentation. Messages with LSR(line status register) values"
lput "\r\ngenerally indicate a problem with line noise, signal strength, modem clocking or"
lput "\r\ncomputer response time to interruptions. Line noise is usually the fault of the"
lput "\r\nphone company. Signal strength may be badly impaired by sharing the phone line"
lput "\r\nwith a cheap telephone. It is not unusual for local phone companies to have"
lput "\r\nproblems on the lines which connect exchanges within local calling areas; these"
lput "\r\nconnections often lack some of the checks and controls used with long distance."
lput "\r\nClocking problems between modems generally occur only when one of the modems is"
lput "\r\nvery cheap or very old. Modems have very different tolerances for line noise."
lput "\r\nWhat one modem finds to be unacceptable may be quite alright for another. Analog"
lput "\r\nsignal descriminators tend to be more noise resistant than digital ones. An LSR"
lput "\r\nvalue of 02 indicates a computer response time problem, which may result from"
lput "\r\nTSR programs loaded into storage, from use of a fast modem on a slow machine, or"
lput "\r\nfrom multitasking. The latter two reasons can generally be dealt with by use of"
lput "\r\na serial port with an NS16550AFN comm chip.\r\n"
lput "\r\nProblems which are not accompanied by messages with LSR values are generally due"
lput "\r\nto problems which are accompanied by messages with LSR values at the other end"
lput "\r\nof the phone line, or to a mismatch in protocols, such as attempting a Zmodem"
lput "\r\nreceive while the BBS is doing an Xmodem send, or to home-grown, altered, or"
lput "\r\ndefective programming for file transfer at the BBS.\r\n"
gosub ak
lput "\r\nBefore deciding to capture the screen on every upload or on every download, keep"
lput "\r\nin mind that 4000 bytes of disk space are required for every 80x25 screen.\r\n"
lput "\r\nThe command\r\n"
lput "\r\n set oncloserx \042@picture\042\r\n"
lput "\r\nwill capture your screen at the end of every download. For batch downloads, this"
lput "\r\ncaptures the screen at the end of every file within the batch.\r\n"
lput "\r\nThe command\r\n"
lput "\r\n set onclosetx \042@picture\042\r\n"
lput "\r\nwill capture your screen at the end of every upload. For batch uploads, this"
lput "\r\ncaptures the screen at the end of every file within the batch.\r\n\n"
set s0 x while !Js0,yn acceptl1 s0 "Capture Screen on Every Download(y/n)? "
set oncloserx "" if is0,y set oncloserx "@picture"
set s0 x while !Js0,yn acceptl1 s0 "Capture Screen on Every Upload(y/n)? "
set onclosetx "" if is0,y set onclosetx "@picture"
sets z0 ProYam;ife dS sets z0 " ZCOMM"
lput "\r\nThe command history file allows you to scroll backward and forward through any"
lput "\r\npreviously issued commands. The file is less than 17K in size and should reside"
lput "\r\non a RAM disk(VDISK). It must not be deleted while %z0 is active; deleting it"
lput "\r\nwhile %z0 is active may cause the disk space(clusters) for the file to be"
lput "\r\nlost. Refer to the /F option of CHKDSK in your DOS manual for a description of"
lput "\r\nthe procedure to recovery such space if you do this. Do not attempt to use the"
lput "\r\n/F option of CHKDSK under a DOS multitasker(such as Desqview). Simply hit enter"
lput "\r\nto avoid keeping the history.\r\n\n"
p?0 while !? accept s3 "Command history log(e.g. g:/history.cmd): " sets s0 %s3 gosub cndreq.%lib/sinit.t
lput "\r\nFor each of the following, simply hit enter to avoid keeping the log.\r\n\n"
p?0 while !? accept plog "File transfer performance log(e.g. c:/log/xfer.log): " sets s0 %plog gosub cndreq.%lib/sinit.t
lput "\r\nFor Pro-Yam users and registered users of ZCOMM, the call log will keep track of"
lput "\r\neach call made and the length of time for which you were connected. Simply"
lput "\r\nhit enter to avoid keeping the log. Hit enter if you are using an unregistered"
lput "\r\ncopy of ZCOMM.\r\n\n"
p?0 while !? accept calllog "Call log(e.g. c:/log/call.log): " sets s0 %calllog gosub cndreq.%lib/sinit.t
lput "\r\nFor Pro-Yam users and registered users of ZCOMM, the received file log will"
lput "\r\nrecord all files received using protocol file transfer and all capture file"
lput "\r\nactivity. Simply hit enter to avoid keeping the log. Hit enter if you are using"
lput "\r\nan unregistered copy of ZCOMM.\r\n\n"
p?0 while !? accept rxlog "Received file log(e.g. c:/log/rx.log): " sets s0 %rxlog gosub cndreq.%lib/sinit.t
lput "\r\nFor Pro-Yam users and registered users of ZCOMM, the transmitted file log will"
lput "\r\nrecord all files sent using a protocol and all files opened for reading, such as"
lput "\r\nfor inspection by a script file. Simply hit enter to avoid keeping the log. Hit"
lput "\r\nenter if you are using an unregistered copy of ZCOMM.\r\n\n"
p?0 while !? accept txlog "Transmitted file log(e.g. c:/log/tx.log): " sets s0 %txlog gosub cndreq.%lib/sinit.t
lput \r\n;set s0 ""
while !Js0,yn acceptl1 s0 "Delete incomplete files received with a protocol(y/n)? "
ife is0,n sets mconnect "@ena -!d;z pr0";else sets mconnect "@ena -!d;z pr1"
if f%ZCUSER.usr echo "Replacing '%lib/%ZCUSER.usr' for future reference."
else echo "Creating '%lib/%ZCUSER.usr' for future reference."
kill;pv0 create -y %lib/%ZCUSER.usr;setc z4 \042
echof "\T %s1"
echof "\T set n0 %z4%n0%z4 set n1 %z4%n1%z4 set n2 %z4%n2%z4"
echof "\T set n3 %z4%n3%z4 set n4 %z4%n4%z4 set n5 %z4%n5%z4"
echof "\T set n6 %z4%n6%z4"
echof "\T set n7 %z4%n7%z4"
echof "\T set n8 %z4%n8%z4"
echof "\T set n9 %z4%n9%z4"
echof "\T set l %z4%l%z4; set m %z4%m%z4"
echof "\T set mprefix %z4%s2%z4"
echof "\T set answerback %z4%z4"
echof "\T set dircx %z4%z4"
echof "\T set dirsx %z4%dirsx%z4"
echof "\T set dirrx %z4%dirrx%z4"
echof "\T set tmp %z4%tmp%z4"
echof "\T set plog %z4%plog%z4"
echof "\T set calllog %z4%calllog%z4"
echof "\T set rxlog %z4%rxlog%z4"
echof "\T set txlog %z4%txlog%z4"
echof "\T set mconnect %z4%mconnect%z4"
echof "\T set picture %z4%picture%z4"
echof "\T set oncloserx %z4%oncloserx%z4"
echof "\T set onclosetx %z4%onclosetx%z4"
echof "\T set s3 %z4%s3%z4 : history"
nolog close;return